import request from '@/config/axios'

// 学生证 VO
export interface StudentCardVO {
}

// 学生证 API
export const StudentCardApi = {
  // 查询学生证分页
  getStudentCardPage: async (params: any) => {
    return await request.get({ url: `/system/student-card/page`, params })
  },

  // 查询学生证详情
  getStudentCard: async (id: number) => {
    return await request.get({ url: `/system/student-card/get?id=` + id })
  },

  // 新增学生证
  createStudentCard: async (data: StudentCardVO) => {
    return await request.post({ url: `/system/student-card/create`, data })
  },

  // 修改学生证
  updateStudentCard: async (data: StudentCardVO) => {
    return await request.put({ url: `/system/student-card/update`, data })
  },

  // 删除学生证
  deleteStudentCard: async (id: number) => {
    return await request.delete({ url: `/system/student-card/delete?id=` + id })
  },

  // 导出学生证 Excel
  exportStudentCard: async (params) => {
    return await request.download({ url: `/system/student-card/export-excel`, params })
  }
}